HTTP headers

您所在的位置:网站首页 header type HTTP headers

HTTP headers

2024-02-27 17:49| 来源: 网络整理| 查看: 265

HTTP Client hints are a set of request headers that provide useful information about the client such as device type and network conditions, and allow servers to optimize what is served for those conditions.

Servers proactively requests the client hint headers they are interested in from the client using Accept-CH. The client may then choose to include the requested headers in subsequent requests.

Accept-CH Experimental

Servers can advertise support for Client Hints using the Accept-CH header field or an equivalent HTML element with http-equiv attribute.

Critical-CH Experimental

Servers use Critical-CH along with Accept-CH to specify that accepted client hints are also critical client hints.

The different categories of client hints are listed below.

User agent client hints

The UA client hints are request headers that provide information about the user agent, the platform/architecture it is running on, and user preferences set on the user agent or platform:

Sec-CH-UA Experimental

User agent's branding and version.

Sec-CH-UA-Arch Experimental

User agent's underlying platform architecture.

Sec-CH-UA-Bitness Experimental

User agent's underlying CPU architecture bitness (for example "64" bit).

Sec-CH-UA-Full-Version-List Experimental

Full version for each brand in the user agent's brand list.

Sec-CH-UA-Mobile Experimental

User agent is running on a mobile device or, more generally, prefers a "mobile" user experience.

Sec-CH-UA-Model Experimental

User agent's device model.

Sec-CH-UA-Platform Experimental

User agent's underlying operation system/platform.

Sec-CH-UA-Platform-Version Experimental

User agent's underlying operation system version.

Sec-CH-UA-Prefers-Color-Scheme Experimental

User's preference of dark or light color scheme.

Sec-CH-UA-Prefers-Reduced-Motion Experimental

User's preference to see fewer animations and content layout shifts.

Device client hints Device-Memory Experimental

Approximate amount of available client RAM memory. This is part of the Device Memory API.

Network client hints

Network client hints allow a server to choose what information is sent based on the user choice and network bandwidth and latency.

Downlink Experimental

Approximate bandwidth of the client's connection to the server, in Mbps. This is part of the Network Information API.

ECT Experimental

The effective connection type ("network profile") that best matches the connection's latency and bandwidth. This is part of the Network Information API.

RTT Experimental

Application layer round trip time (RTT) in milliseconds, which includes the server processing time. This is part of the Network Information API.

Save-Data Experimental

A string on that indicates the user agent's preference for reduced data usage.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3